package factory.nvwa;

/**
 * @Author：LJ
 * @Description：
 * @Date: 2017/11/26
 * @Modified By:
 */
public class HumanFactory extends AbstractHumanFactory {
    @Override
    public <T extends Human>T  createHuman(Class<T> c) {
        Human human = null;
        try {
            human = (Human) Class.forName(c.getName()).newInstance();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return (T) human;
    }
}
